package cn.javaxc.boot;

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.activiti.spring.boot.SecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;


@SpringBootApplication(scanBasePackages={"com.ruoyi","cn.javaxc"},exclude = {DataSourceAutoConfiguration.class,SecurityAutoConfiguration.class})
@MapperScan({"cn.javaxc"})  
@EnableCaching
public class ErpApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {

		SpringApplication application = new SpringApplication(ErpApplication.class);
//		application.setBannerMode(Banner.Mode.OFF);
		application.run(args);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        application.bannerMode(Banner.Mode.OFF);
        return application.sources(ErpApplication.class);
    }

}
